if(!us) var us={};
if(!us.endrizzi)us.endrizzi={};
if(!us.endrizzi.xdebugassistantOptions) us.endrizzi.xdebugassistantOptions={};

us.endrizzi.xdebugassistantOptions = {
	initialize: function () {
		var prefManager = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService);
		var branch = prefManager.getBranch("extensions.xdebugassistant.");
		var idekey = document.getElementById("xdebugassistant_prefs_idekey");
		idekey = idekey ? idekey : 'netbeans-xdebug';
		idekey.setAttribute("value", branch.getCharPref("extensions.xdebugassistant.idekey"));
	},
	
	save: function () {
		var prefManager = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService);
		var branch = prefManager.getBranch("extensions.xdebugassistant.");
		branch.setCharPref("extensions.xdebugassistant.idekey",document.getElementById("xdebugassistant_prefs_idekey").value);
	}
};